import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    //录入信息
    {
      path: '/customized',
      name: 'customized',
      component: () => import('./views/customized.vue')
    },
    //预约时间
    {
      path: '/makeTime',
      name: 'makeTime',
      component: () => import('./views/makeTime.vue')
    },
    //进度
    {
      path: '/progress',
      name: 'progress',
      component: () => import('./views/progress.vue')
    },
    //我的方案
    {
      path: '/plan',
      name: 'plan',
      component: () => import('./views/plan.vue')
    },
    //详情
    {
      path: '/details',
      name: 'details',
      component: () => import('./views/details.vue')
    },
    { path: '*', redirect: '/', hidden: true }
  ]
})
